package com.liqiye.paymanager.service.common.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liqiye.paymanager.entity.Product;
import com.liqiye.paymanager.mapper.ProductMapper;
import com.liqiye.paymanager.service.common.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements ProductService {

    @Autowired
    private ProductMapper productMapper;

    @Override
    public List<Product> selectAll() {
        return productMapper.selectAll();
    }

    public void insert(Product product){
        productMapper.insert(product);
    }

    public void deleteById(String id){
        productMapper.deleteById(id);
    }

}
